int q = 0x5a;
int t1 = 1;
int t2 = 2;
int t3 = 3;
int t4 = 4;
#define REGPARM3 __attribute((regparm(3)))
#define REGPARM0 __attribute((regparm(0)))
void REGPARM0 p1(int a)
{
    q = a + 1;
}

void REGPARM0 p2(int a, int b, int c, int d)
{
    q = a + b + c + d + 1;
}

int main()
{
    p1(t1);
    p2(t1, t2, t3, t4);
    return 0;
}
